package com.bingxue.edu.management.system.model.resp;

import com.bingxue.edu.common.enums.FileTypeEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;


/**
 * 文件信息
 *
 * @author panbo
 * @since 2024/07/24 08:57
 */
@Data
@Schema(description = "文件信息")
public class FileResp {

    @Schema(description = "id")
    private String id;

    @Schema(description = "名称")
    private String name;

    @Schema(description = "大小")
    private Long fileSize;

    @Schema(description = "URL")
    private String fileUrl;

    @Schema(description = "扩展名")
    private String extension;

    @Schema(description = "缩略图大小")
    private Long thumbnailSize;

    @Schema(description = "缩略图URL")
    private String thumbnailUrl;

    @Schema(description = "文件类型")
    private FileTypeEnum fileType;

    @Schema(description = "存储ID")
    private String storageId;

    @Schema(description = "存储名称")
    private String storageName;

    @Schema(description = "创建人")
    private String createUser;

    @Schema(description = "创建人")
    private LocalDateTime createTime;

    @Schema(description = "更新人")
    private String updateUser;

    @Schema(description = "更新时间")
    private LocalDateTime updateTime;
}
